package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface PermissionService {
	//分页查询权限
	PageResult findPage(QueryPageBean queryPageBean);
	//添加权限
	void addPermission(Permission permission);

	void deleteById(Integer id);

	Permission findById(Integer id);

	void edit(Permission permission);

	List<Permission> findAll();
}
